Skip to main content

resources.json

The resources.json file holds all translations used in the applications. This file is generally places in the folder /src/locales/ within each project using i18next.

File structure

{
"en": {
"translation": {
[namespace]: {
[key]: [value]
}
}
},
"ga-IE": {
"translation": {
[namespace]: {
[key]: [value]
}
}
}
}

Terminology

variabledescription
namespaceDescribes the component in which the text will be used
keyDescribes a the purpose of the key or its string value
valueThe string value of that key is referencing

EXAMPLE

{
"en": {
"translation": {
"story_menu_view": {
"title": "Select a story"
}
}
},
"ga-IE": {
"translation": {
"story_menu_view": {
"title": "Roghnaigh scéal"
}
}
}
}